package com.xiaoxu.intranetweb.mybatisplusSzappdb.excelEntity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class SolidWasteExcelEn {
    @ExcelProperty(value = "净重")
    private BigDecimal num;
    @ExcelProperty(value = "过重时间")
    private String fullTm;
    @ExcelProperty(value = "客户单位")
    private String co;
    @ExcelProperty(value = "所属单位")
    private String suppLyCo;
    @ExcelProperty(value = "货种")
    private String pdtName;
    @ExcelIgnore
    private String transportMode;
    @ExcelIgnore
    private String handledBy;
    @ExcelIgnore
    private String pdtClassCode;
    @ExcelIgnore
    private String transportInfo;
    @ExcelIgnore
    private String receivingCpy;
    @ExcelIgnore
    private String flowDirection;
    public SolidWasteExcelEn() {
    }

    public SolidWasteExcelEn(BigDecimal num, String fullTm, String co, String suppLyCo, String pdtName, String transportMode, String handledBy, String pdtClassCode, String transportInfo, String receivingCpy, String flowDirection) {
        this.num = num;
        this.fullTm = fullTm;
        this.co = co;
        this.suppLyCo = suppLyCo;
        this.pdtName = pdtName;
        this.transportMode = transportMode;
        this.handledBy = handledBy;
        this.pdtClassCode = pdtClassCode;
        this.transportInfo = transportInfo;
        this.receivingCpy = receivingCpy;
        this.flowDirection = flowDirection;
    }

    public SolidWasteExcelEn merge(SolidWasteExcelEn other) {
        return new SolidWasteExcelEn(this.num.add(other.num),other.getFullTm(),other.co,other.suppLyCo,other.pdtName ,other.transportMode,other.handledBy,other.pdtClassCode,other.transportInfo,other.receivingCpy,other.flowDirection);
    }
}
